﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static CloudApiServer.Controllers.FsiApiZheJiangController;
using static log4net.Appender.RollingFileAppender;

namespace CloudApiServer
{
    /// <summary>
    /// 医保输出
    /// </summary>
    /// <typeparam name="TResult"></typeparam>
    public class FsiHeader<TResult>
    {
        /// <summary>
        /// 交易输出
        /// </summary>
        public TResult output { get; set; }
        /// <summary>
        /// 交易状态码
        /// </summary>
        public int infcode { get; set; }
        public string warn_msg { get; set; }
        public object cainfo { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string err_msg { get; set; }
        /// <summary>
        /// 接收报文时间
        /// </summary>
        public string refmsg_time { get; set; }
        public string signtype { get; set; }
        /// <summary>
        /// 响应报文时间
        /// </summary>
        public string respond_time { get; set; }
        /// <summary>
        /// 接收方报文ID
        /// </summary>
        public string inf_refmsgid { get; set; }

        public string enctype { get; set; }
    }
    
    /// <summary>
    /// 医保输出
    /// </summary>
    /// <typeparam name="TResult"></typeparam>
    public class FsiChongQingHeader<TResult>
    {
        /// <summary>
        /// 交易输出
        /// </summary>
        public TResult output { get; set; }
        /// <summary>
        /// 交易状态码
        /// </summary>
        public string infcode { get; set; }
        public string warn_msg { get; set; }
        public object cainfo { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string err_msg { get; set; }
        /// <summary>
        /// 接收报文时间
        /// </summary>
        public string refmsg_time { get; set; }
        public string signtype { get; set; }
        /// <summary>
        /// 响应报文时间
        /// </summary>
        public string respond_time { get; set; }
        /// <summary>
        /// 接收方报文ID
        /// </summary>
        public string inf_refmsgid { get; set; }

        public string enctype { get; set; }
    }
    /// <summary>
    ///医保输出头 安徽
    /// </summary>
    /// <typeparam name="TResult"></typeparam>
    public class FsiAnHuiHeader<TResult>
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// csb状态码
        /// </summary>
        public int csbCode { get; set; }
        /// <summary>
        /// 消息（请求失败时传这个）
        /// </summary>
        public string message {  get; set; }
        public string requestId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public List<string> state { get; set; }
        /// <summary>
        /// 国标入参
        /// </summary>
        public FsiHeader<TResult> body { get;set; }
    }

    /// <summary>
    /// 明细审核事前 事中分析输出
    /// </summary>
    public class OutputriskConService
    {
        public List<DatariskConServiceresult> result { get; set; }
    }
    public class DatariskConServiceresult
    {
        /// <summary>
        /// 
        /// </summary>
        public List<Judge_result_detail_dtosItem> judge_result_detail_dtos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rule_id { get; set; }
        /// <summary>
        /// 本品用于清热除湿，益气化瘀。用于湿热瘀阻所致的带下病、腹痛，症见带下量多、色黄质稠、臭秽，小腹疼痛，腰骶酸痛，神疲乏力；慢性盆腔炎、子宫内膜炎、慢性宫颈炎见上述证候者。规格:
        /// </summary>
        public string vola_evid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mdtrt_id { get; set; }
        /// <summary>
        /// 单次就诊性别用药禁忌_事中
        /// </summary>
        public string rule_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string vola_amt_stas { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string jr_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string patn_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sev_deg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int vola_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string vola_bhvr_type { get; set; }
        /// <summary>
        /// [妇科千金片/]为女性使用药物，参保人当前信息显示性别为：男
        /// </summary>
        public string vola_cont { get; set; }
    }

    public class Judge_result_detail_dtosItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string vola_item_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mdtrt_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string jrd_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string patn_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rx_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal vola_amt { get; set; }

        public static implicit operator List<object>(Judge_result_detail_dtosItem v)
        {
            throw new NotImplementedException();
        }
    }

    /// <summary>
    /// 结算退款基金分项拓展字段
    /// </summary>
    public class setl_proc_info
    {
        public double hifpPayInscp { get; set; }
        public string polItemCode { get;set; }
        public double poolPropSelfpay { get; set; }
        public double hifpPay { get; set; }
    }
    /// <summary>
    /// 结算基金支付分项（浙江）
    /// </summary>
    public class SetlinfoexpcontentZJ
    { 
        public double clcYearAcctPay { get; set; }
        public double Q0001 { get;set; }
        public double crtYearAcctPay { get; set; }
    }
    /// <summary>
    /// 结算基金支付分项（其他）
    /// </summary>
    public class Setlinfoexpcontent
    { 
        /// <summary>
        /// 钱包余额
        /// </summary>
        public double medIns_wallet_balance { get; set; }
        /// <summary>
        /// 钱包支付
        /// </summary>
        public double medIns_wallet_pay { get;set; }
    }
    
    
    public class outputsignInOut
    {
        public signInOut signinoutb { get; set; }
    }

    public class outputsignInOutShandong
    {
        public signInOut result { get; set; }
    }
    public class signInOut
    {
        public string sign_no { get; set; }
        public string sign_time { get; set; }
    }
    public class outputQueryPsnInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public List<Idetinfo> idetinfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Baseinfo baseinfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Insuinfo> insuinfo { get; set; }
    }
    public class Idetinfo
    {
        public string psn_idet_type { get; set; }
        public string psn_type_lv { get; set; } 
        public string memo {  get; set; }   
        public string begntime { get; set; }
        public string endtime { get; set; }
    }

    public class Baseinfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string certno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string gend { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exp_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string brdy { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string naty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_cert_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal age { get; set; }
        /// <summary>
        /// 人员管理码 202504新增
        /// </summary>
        public string psn_mgtcode { get; set; }
    }
    public class Insuinfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string insuplc_admdvs { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_insu_date { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cvlserv_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double balc { get; set; }
        /// <summary>
        /// 浙江华民软件有限公司
        /// </summary>
        public string emp_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_insu_stas { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string insutype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string paus_insu_date { get; set; }

        public static implicit operator List<object>(Insuinfo v)
        {
            throw new NotImplementedException();
        }
    }
    /// <summary>
    /// 2101 2102 药店结算输出
    /// </summary>
    public class outputDrugstoreSettleAccountsPreA
    {
        /// <summary>
        /// 
        /// </summary>
        public List<Detlcutinfo> detlcutinfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Setlinfo setlinfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Setldetail> setldetail { get; set; }
    }
    public class Detlcutinfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string bas_medn_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string med_chrgitm_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal det_item_fee_sumamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string hi_nego_drug_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int fulamt_ownpay_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal cnt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal pric { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string memo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string hosp_part_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string feedetl_sn { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal inscp_scp_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string drt_reim_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int overlmt_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string list_sp_item_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal pric_uplmt_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int selfpay_prop { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string chld_medc_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int preselfpay_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string chrgitm_lv { get; set; }
    }
    public class Setlinfo
    {
        public string setl_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string setl_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double cvlserv_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifdm_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cvlserv_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string med_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exp_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string brdy { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string naty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double psn_cash_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string certno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifmi_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double act_pay_dedc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mdtrt_cert_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double balc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medins_setl_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_cert_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double acct_mulaid_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string clr_way { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifob_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double oth_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double medfee_sumamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifes_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string gend { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mdtrt_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double acct_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double fund_pay_sumamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double fulamt_ownpay_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hosp_part_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double inscp_scp_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string insutype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double maf_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double psn_part_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string clr_optins { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double pool_prop_selfpay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string psn_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifp_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double overlmt_selfpay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double preselfpay_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int age { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string clr_type { get; set; }
    }
    public class Setldetail
    {
        /// <summary>
        /// 
        /// </summary>
        public string fund_pay_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double fund_payamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string setl_proc_info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double crt_payb_lmt_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double inscp_scp_amt { get; set; }
        /// <summary>
        /// 城镇职工基本医疗保险个人账户基金
        /// </summary>
        public string fund_pay_type_name { get; set; }
    }
    /// <summary>
    /// 2103 药店结算撤销
    /// </summary>
    public class outputDrugstoreSettleRevoke
    {
        /// <summary>
        /// 
        /// </summary>
        public SetlinfoRevoke setlinfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Setldetail> setldetail { get; set; }
    }
    public class SetlinfoRevoke
    {
        /// <summary>
        /// 
        /// </summary>
        public string setl_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double cvlserv_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifdm_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double psn_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifmi_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double act_pay_dedc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double balc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medins_setl_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double acct_mulaid_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifob_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double oth_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double medfee_sumamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifes_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mdtrt_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double acct_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double fund_pay_sumamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double fulamt_ownpay_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string setl_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double inscp_scp_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double maf_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int cash_payamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string clr_optins { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double pool_prop_selfpay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double hifp_pay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double overlmt_selfpay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double preselfpay_amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exp_conmtent { get; set; }
    }
    /// <summary>
    /// 2201门诊挂号出参output
    /// </summary>
    public class OutputOutpatientRregistration
    {
        /// <summary>
        /// 
        /// </summary>
        public OutpatientRregistration data { get; set; }
    }
    /// <summary>
    /// 2201门诊挂号出参data
    /// </summary>
    public class OutpatientRregistration
    {
        /// <summary>
        /// 
        /// </summary>
        public string psn_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mdtrt_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exp_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ipt_otp_no { get; set; }
    }

    /// <summary>
    /// 5206人员费用累计 output
    /// </summary>

    public class outputCuminfo
    {
        public List<Cuminfo> cuminfo { get; set; }
    }
    /// <summary>
    /// 5201 就诊记录查询 output
    /// </summary>
    public class OutputMdtrtinfo
    {
        /// <summary>
        /// 
        /// </summary>
        public List <DataMdtrtinfo> mdtrtinfo { get; set; }
    }
    /// <summary>
    /// 5201 就诊记录查询 output
    /// </summary>
    public class DataMdtrtinfo
    {
    /// <summary>
    /// 出院科室编码
    /// </summary>
    public string dscg_dept_codg { get; set; }
    /// <summary>
    /// 入院科室编码
    /// </summary>
    public string adm_dept_codg { get; set; }
    /// <summary>
    /// 医疗类别
    /// </summary>
    public string med_type { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string memo { get; set; }
    /// <summary>
    /// 经办人ID
    /// </summary>
    public string opter_id { get; set; }
    /// <summary>
    /// 跨年度住院标志
    /// </summary>
    public string ars_year_ipt_flag { get; set; }
    /// <summary>
    /// 胎儿数
    /// </summary>
    public int fetus_cnt { get; set; }
    /// <summary>
    /// 灵活就业标志 
    /// </summary>
    public string flxempe_flag { get; set; }
    /// <summary>
    /// 人员编号
    /// </summary>
    public string psn_no { get; set; }
    /// <summary>
    /// 胎次
    /// </summary>
    public int fetts { get; set; }
    /// <summary>
    /// 联系方式
    /// </summary>
    public string tel { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string dscg_dept_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string dscg_maindiag_code { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string gend { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string matn_type { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string mdtrt_id { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string birctrl_type { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string adm_dept_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string begntime { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string die_date { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string insutype { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string pre_pay_flag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string ipt_otp_no { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string maf_psn_flag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string oprn_oprt_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string cop_flag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string psn_type { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string chfpdr_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string main_cond_dscr { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string coner_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string birctrl_matn_date { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string cvlserv_flag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string medrcdno { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string emp_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string dscg_way { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string brdy { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string naty { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string inhosp_stas { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string otp_diag_info { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string certno { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string dise_codg { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string pret_flag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string latechb_flag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string mdtrt_cert_type { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string opter_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string oprn_oprt_code { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string ipt_days { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string fpsc_no { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string psn_cert_type { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string atddr_no { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string nwb_flag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string dscg_bed { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string adm_bed { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string opt_time { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string geso_val { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string endtime { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string psn_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string insu_optins { get; set; }
    /// <summary>
    /// I度痔
    /// </summary>
    public string dise_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string dscg_maindiag_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public int age { get; set; }
    }
    
    /// <summary>
    /// 5206人员费用累计 data
    /// </summary>
    public class Cuminfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string cum_type_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string year { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal cum { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cum_ym { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string insutype { get; set; }
    }

    public class outputDataOpsp7202
    {
        public List<DataOpsp7202> data { get; set; }
    }
    public class DataOpsp7202
    {
        /// <summary>
        /// 
        /// </summary>
        public string auth_rxno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string epc_token { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string expires_in { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fixmedins_code { get; set; }
        /// <summary>
        /// 宁
        /// </summary>
        public string fixmedins_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string prsc_time { get; set; }
        /// <summary>
        /// 精神科
        /// </summary>
        public string dept_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dise_codg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dise_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string valid_end_time { get; set; }
    }

    public class outputDataOpsp7203
    {
        /// <summary>
        /// 
        /// </summary>
        public DataOpsp7203 data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<RxDetlList> rxDetlList { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public RxOtpinfo rxOtpinfo { get; set; }
    }
    public class DataOpsp7203
    {
        /// <summary>
        /// 
        /// </summary>
        public string hi_rxno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fixmedins_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fixmedins_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string prsc_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string valid_end_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? reptd_cnt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rx_file { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rx_trace_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string prsc_dept_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rx_type_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rx_type_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string long_rx_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string file_suffix { get; set; }
    }

    public class RxDetlList
    {
        /// <summary>
        /// 
        /// </summary>
        public string med_list_codg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fixmedins_hilist_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string hosp_prep_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rx_item_type_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rx_item_type_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tcmdrug_type_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tcmdrug_type_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tcmherb_foote { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medn_type_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medn_type_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string main_medc_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string urgt_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string bas_medn_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string imp_drug_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string drug_prodname { get; set; }
        /// <summary>
        /// 阿莫西林片
        /// </summary>
        public string drug_genname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string drug_dosform { get; set; }
        /// <summary>
        /// 按C16H19N3O5S计0.25g*24片/盒
        /// </summary>
        public string drug_spec { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string prdr_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal drug_cnt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medc_way_codg { get; set; }
        /// <summary>
        /// 口服
        /// </summary>
        public string medc_way_dscr { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medc_endtime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medc_begntime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal medc_days { get; set; }
        /// <summary>
        /// 片
        /// </summary>
        public string drug_dosunt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal sin_doscnt { get; set; }
        /// <summary>
        /// 片
        /// </summary>
        public string sin_dosunt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string used_frqu_codg { get; set; }
        /// <summary>
        /// 每天一次
        /// </summary>
        public string used_frqu_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string drug_totlcnt { get; set; }
        /// <summary>
        /// 盒
        /// </summary>
        public string drug_totlnt_emp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string own_expense_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string hi_nego_drug_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string refer_d_channel_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string bidding_drug_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string hosp_appr_flag { get; set; }
    }

    public class RxOtpinfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string med_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string patn_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal patn_age { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string patn_hgt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? patn_wt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string gend { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? geso_val { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string nwb_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string nwb_age { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? suck_prd_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string algs_his { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dise_codg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dise_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string otp_ipt_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string main_diag_code { get; set; }
        /// <summary>
        /// 麻风
        /// </summary>
        public string main_diag_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dise_cond_dscr { get; set; }
    }

    public class OutputOpsp7000
    {
        public DataOutputOpsp7000 data { get; set; }
        public List<ListOutputOpsp7000> list { get; set; }
    }
    public class DataOutputOpsp7000
    {
        public int total {  get; set; }
        public int Size {  get; set; }  
    }
    public class ListOutputOpsp7000
    {
        public string med_list_codg { get; set; }
        public string nat_drug_no { get; set; }
        public string genname { get; set; }
        public string prodname { get; set; }
        public string reg_name { get; set; }
        public string list_type { get; set; }
        public string list_type_name { get; set; }
        public string spec_name { get; set; }
        public string prdr_name { get; set; }
        public string aprvno { get; set; }
        public string dosform_name { get; set; }
        public string min_pacunt { get; set; }
        public string min_pac_cnt { get; set; }
        public string min_prepunt { get; set; }
        public string poolarea_no { get; set; }
        public string poolarea_name { get; set; }
        public string dualchnl_flag { get; set; }
        public string begntime { get; set; }
        public string endtime { get; set; }

    }

    public class OutputOpsp7204
    {
        public DataOutputOpsp7204 data { get; set; }
    }
    public class DataOutputOpsp7204
    {
        public string flag { get; set; }
        public string rx_chk_biz_sn { get; set; }
        public string rx_info_verify_result { get; set; }
    }

    public class OutputQueryMedListMapByPage
    {
        public int recordCounts { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int pages { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<DataQueryMedListMapByPage> data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string firstPage { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string lastPage { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int size { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int startRow { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int endRow { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int pageNum { get; set; }
    }

    public class DataQueryMedListMapByPage
    {
        /// <summary>
        /// 
        /// </summary>
        public string insu_admdvs { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string med_list_codg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string poolarea_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string item_cont { get; set; }
        /// <summary>
        /// 阿莫西林胶囊
        /// </summary>
        public string medins_list_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string memo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string opter_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string crte_optins_no { get; set; }
        /// <summary>
        /// 0.25g*50粒
        /// </summary>
        public string spec { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string begndate { get; set; }
        /// <summary>
        /// 国药准字H50020726
        /// </summary>
        public string aprvno { get; set; }
        /// <summary>
        /// 硬胶囊
        /// </summary>
        public string dosform { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fixmedins_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string crte_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string opter_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string optins_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exct_cont { get; set; }
        /// <summary>
        /// 0.25g*50粒
        /// </summary>
        public string pacspec { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string opt_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string crter_name { get; set; }
        /// <summary>
        /// 盒
        /// </summary>
        public string prcunt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string list_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string medins_list_codg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string enddate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string vali_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string crter_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string updt_time { get; set; }
    }


    public class OutputStmtTotal 
    { 
        public DataStmtTotal stmtinfo { get; set; }
    }
    public class DataStmtTotal
    {
        public string setl_optins { get; set; }
        public string stmt_rslt_dscr { get; set; }
        public string stmt_rslt { get; set; }
    }

    public class OutputQueryPsnOpspReg
    {
        public List<FeedetailQueryPsnOpspReg>  feedetail { get; set; }
    }
    public class FeedetailQueryPsnOpspReg
    {
        /// <summary>
        /// 
        /// </summary>
        public string begndate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string enddate { get; set; }
        /// <summary>
        /// 头和颈部血管治疗性超声
        /// </summary>
        public string opsp_dise_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exp_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string opsp_dise_code { get; set; }
    }
    /// <summary>
    /// 文件上传返回信息
    /// </summary>
    public class OutputFileUpload
    {
        /// <summary>
        /// 
        /// </summary>
        public string filename { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string file_qury_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dld_endtime { get; set; }
    }


    /// <summary>
    /// 3202对明细账返回信息
    /// </summary>
    public class OutputStmtDetail
    {
        /// <summary>
        /// 
        /// </summary>
        public OutputFileUpload fileinfo { get; set; }
    }
}
